﻿using System;
using System.Xml.Serialization;

namespace Zendesk.NET.Models
{
    [XmlRoot("attachment")]
    public class Attachment
    {
        [XmlElement("content-type")]
        public string ContentType;
        
        [XmlElement("created-at")]
        public DateTime Created;
        
        [XmlElement("filename")]
        public string Filename;
        
        [XmlElement("id")]
        public int Id;
        
        [XmlElement("is-public")]
        public bool IsPublic;
        
        [XmlElement("size")]
        public int Size;
        
        [XmlElement("token")]
        public string Token;

        [XmlElement("url")]
        public string Url;
    }
}